package com.javastudy.autowiredStudy.condationalStudy;


import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @author madonghui
 * @title: MyCondition
 * @projectName javaproject
 * @description: 自定义condition注解    需要注意导入的包是spring的包
 * @date 2021/9/89:38 下午
 */
public class MyCondition implements Condition {
    @Override
    public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {

        //实现自定义逻辑
        return false;
    }
}
